<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input"  placeholder="请输入标题" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">图片</label>
            <div class="layui-input-block layuimini-upload">
                <input name="image" class="layui-input layui-col-xs6"   placeholder="请上传图片" value="">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="image" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                    <span><a class="layui-btn layui-btn-normal" id="select_image" data-upload-select="image" data-upload-number="one" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">单价</label>
            <div class="layui-input-block">
                <input type="text" name="payment_price" class="layui-input"  placeholder="请输入单价" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">产出</label>
            <div class="layui-input-block">
                <input type="text" name="produce" class="layui-input"  placeholder="请输入产出" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">产出币种</label>
            <div class="layui-input-block">
                <div class="layui-input-block">
                    <select name="produce_type" lay-verify="required" data-select="{:url('user.user_info/getCoinType')}" data-fields="id,title">
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">算力单位</label>
            <div class="layui-input-block">
                <select name="calculation_company_id" lay-verify="required" data-select="{:url('calculation.calculation_company/index')}" data-fields="id,company">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">算力币种</label>
            <div class="layui-input-block">
                <select name="calculation_currency_id" lay-verify="required" data-select="{:url('calculation.calculation_currency/index')}" data-fields="id,title">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">算力库存</label>
            <div class="layui-input-block">
                <input type="text" name="stock" class="layui-input"  placeholder="请输入算力库存" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">类型</label>
            <div class="layui-input-block">
                {foreach $getTypeList as $k=>$v}
                <input type="radio"  lay-filter="type" name="type" value="{$k}" title="{$v}" {in name="k" value=""}checked=""{/in}>
                {/foreach}
            </div>
        </div>
        <div class="layui-form-item" id="datys" style="display: none">
            <label class="layui-form-label">期货天数</label>
            <div class="layui-input-block">
                <input type="text" name="datys" class="layui-input"  placeholder="1为次日０点运行，2为后天０点运行" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">支付类型</label>
            <div class="layui-input-block">
                <select name="payment_id" lay-verify="required" >
                    {foreach $payment_type as $k=>$v}
                    <option value="{$k}">{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">合约天数</label>
            <div class="layui-input-block">
                <select name="calculation_days_id" lay-verify="required" data-select="{:url('calculation.calculation_days/index')}" data-fields="id,days">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                {foreach $getStatusList as $k=>$v}
                <input type="radio" name="status" value="{$k}" title="{$v}" {in name="k" value=""}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">详情</label>
            <div class="layui-input-block">
                <textarea name="content" rows="20" class="layui-textarea editor" 详情 placeholder="请输入详情"></textarea>
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>
    </form>
</div>